package wwy.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import wwy.Dto.CommonDto.FoodsDto;
import wwy.Dto.CommonDto.MerchantDto;

@FeignClient(name = "MerchantService")
public interface getMerchantService {
    @GetMapping("foods/getFoods/{Merchant_id}/{Food_name}")
    FoodsDto getFood(@PathVariable("Merchant_id") Long Merchant_id, @PathVariable("Food_name") String Foods_name);

    @GetMapping("merchant/getMerchantByName/{merchantName}")
    MerchantDto getMerchantByName(@PathVariable("merchantName") String merchantName);
}
